h, w = map(int, input().split())

base = "2025"
full_string = base * (w // len(base) + 2)  # 确保足够长

for i in range(h):
    start = i % len(base)
    row = full_string[start:start + w]
    print(row)